<!--{template header}-->
<link rel="stylesheet" href="{SKIN_PATH}/css/task.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="{SKIN_PATH}/theme/{$_K['theme']}/css/task.css" rel="stylesheet" type="text/css">
<div class="wrapper">      
        <!--页面头部-->
        <header class="clearfix page_header">
        	<div class="container_24"> 
            
            <!--页面导航-->
            <div class="breadcrumbs clearfix">
                <a href="index.php">{$_lang['home']}</a> &gt; <span>{$_lang['shop_map']}</span>
              </div>
            <!--end 页面导航-->
            
            <!--页面标题(搜索前)--
            <div class="page_title clearfix">
                <div class="grid_20">
                <h2 class="title">{$_lang['shop_map']}</h2>
              	</div>
				
             	
				<div class="grid_4 pt_10 m_h">
                	<a href="index.php?do=shop_release" class="submit block"> {$_lang['pub_goods']}</a>
                </div>
				{if $top_info['indus_id']}
                <div class="grid_24"> <div class="border_r_c">$top_info['indus_intro']</div> </div>
				{/if}
                <div class="clear"></div>
              </div>
            <!--end 页面标题-->
            
            <!--页面标题(搜索后)-->
            	<div class="page_title clearfix" style="display:none;">
                	<div class="grid_20">
                	<h2>{$_lang['search_result']}</h2>
                    </div>
                    <div class="grid_4 pt_10 m_h">
                	<a href="index.php?do=shop_release" class="submit">{$_lang['pub_goods']}</a>
                	</div>
                    <div class="clear"></div>
                </div>
            <!--end 页面标题-->
            
            
           
          </div>
        </header> 
        <!--end 页面标题-->
        
        <!--主内容-->
        <section class="clearfix content">
            <div class="container_24">
            	
    	<div class="clear"></div>
		
	  <!--大厅列表_头部二栏广告 start-->
	 		 <!--{ad_show(LIST_HEAD_TWO)}-->
	  <!--大厅列表_头部二栏广告 end-->
		<div class="clear"></div>
                <div class="box  mb_10 clearfix">
                	<div class="grid_24">
                    <!--筛选条件-->
                    <div class="filter shop_map box normal po_re">
                    	<div class="inner">
                      <!--条件列表-->
                      <div class="condition_list pad10" > 
                        <!--分类-->
                        <dl class="condition clearfix m_h">
                          <dt class="grid_2 omega">{$_lang['goods_class']}</dt>
                          <dd class="grid_21">
                          		<!--{eval $exist = stristr($path, "A");}-->
                              <a href="$check_all['A']" {if !$exist} class='selected' {/if}>{$_lang['all']}</a>
							  {loop $check_url_arr['A'] $k $v} 
                                   <a href="$v['url']"  {if $v['selected']} class="selected" {/if}  >$v['indus_name']</a> 
							  {/loop} 
                              </dd>
                         </dl>
                         <!--end 分类-->
                       
                      	  <!--条件1-->
                          <dl class="condition clearfix m_h">
                            <dt class="grid_2 omega">{$_lang['goods_kinds']}{$_lang['zh_mh']}</dt>
                            <dd class="grid_21">
                            	<!--{eval $exist = stristr($path, "C");}-->
                                <a href="$check_all['C']" {if !$exist} class="selected" {/if}>{$_lang['all']}</a> 
								{loop $check_url_arr['C'] $k $v}
								   
								    <a href="$v['url']"  {if $v['selected']} class="selected" {/if}>$v['name']</a> 
                                {/loop}
                                </dd>
                           </dl>
						 <dl class="condition clearfix border_n">
                                        <dt class="grid_2 omega">
                                        	  {$_lang['area_search']}
                                        </dt>
                                        <dd class="grid_21">
                                        	<form>
                                        	 
						                      <span id="spn_province"></span>
						                     <select name="province" id="province" ></select><select name="city" id="city"></select><select name="area" id="area"></select>
											
											<a onclick="search_area('shop_map')" style="" class="button ml_5 mt_5">
                                        	<span class="icon cog"></span>{$_lang['search']}
                                            </a>
											</form>
                                        </dd>
                         </dl> 
                           <div id="condition_list" style="display:none;">
                           <!--条件2-->
                           <dl class="condition clearfix">
                            <dt class="grid_2 omega">{$_lang['goods_money']}</dt>
                            <dd class="grid_21">
                                        <span id="general_search"  {if $_COOKIE['kekeshop_map_search_cash']}  style="display:none;" {/if} >
                                        	<!--{eval $exist = stristr($path, "B");}-->
										<a href="$check_all['B']" {if !$exist}  class="selected" {/if}>{$_lang['all']}</a>
										{loop $check_url_arr['B'] $k $v}

										<a href="$v['url']" {if $v['selected']}  class="selected" {/if} >$v['name'] </a>
										{/loop}
										<a class="button" style="" onclick="custom_search_cash('shop_map_search_cash')">
                                        	<span class="icon cog"></span>{$_lang['user_defined']}</a></span>
                                        <div id="cool_search" {if !$_COOKIE['kekeshop_map_search_cash']}  style="display:none;" {/if}>
                                            <div class="grid_12">
                                            	<div class="pr_30">
	                                                <div id="slider-range" class="mr_5">
	                                                	
	                                                </div>
													<div class="clear"></div>
													<ul class="range-num">
														<li class="first" >0</li>
	                                                	<li>1000</li>
														<li>2000</li>
														<li>3000</li>
														<li class="lasts">4000</li>
														<li class="last">5000</li>
													</ul>
													<div class="clear"></div>
												</div>
												<div class="clear"></div>
												<div class="pt_10">
	                                                <label for="amount1">
	                                                  	  {$_lang['price']}:
	                                                </label>
												
	                                                <input type="text" id="amount1" class="txt_input" size="5"/> -
													<input type="text" id="amount2" class="txt_input" size="5"/> {$_lang['yuan']}
													<a class="button" style="" onclick="search_task_cash()"><span class="magnifier icon"></span>{$_lang['search']}</a>
                                            		
												</div>
											</div>
											<div class="grid_8"><a class="button" style="" onclick="task_cash_reset('shop_map_search_cash')"><span class="icon reload"></span>{$_lang['return']}</a></div>
											
                                        </div>
                                    </dd>
                           </dl>
						  
						   
						  <form id="cash_frm" name="cash_frm" action="#" method="get">  
							<input type="hidden" name="do" value="shop_map">
							<input type="hidden" name="path" value="{if $path}$path{/if}">
							<input type="hidden" name="min" id="min">
							<input type="hidden" name="max" id="max">
							<input type="hidden" name="page_size" id="page_size" value="$page_size">
						  </form>
						  
						 <form id="cash_frm_fh" name="cash_frm_fh"  action="#" method="post"> 
							<input type="hidden" name="do" value="shop">
							<input type="hidden" name="path" value="{if $path}$path{else};{/if}"> 
							<input type="hidden" name="page_size" id="page_size" value="$page_size">
							
						 </form>
                           <!--end 条件2-->
                      
                      
                           
                           <!--条件4-->
                           <dl class="condition clearfix">
                            <dt class="grid_2 omega">{$_lang['pub_time']}</dt>
                            <dd class="grid_21">
                            	<!--{eval $exist = stristr($path, "D");}-->
                                <a href="$check_all['D']" {if !$exist} class="selected" {/if}>{$_lang['all']}</a> 
								{loop $check_url_arr['D'] $k $v} 
								    <a href="$v['url']"  {if $v['selected']} class="selected" {/if} >$v['name']</a> 
                                {/loop}
                                </dd>
                           </dl>
                           <!--end 条件4-->
                 
						</div>
						<!--工具栏-->
                            <div class="operate po_ab">
                                <a href="javascript:show_hide()" id="tool_show" title="{$_lang['unfold']}"><span class="icon16 sq-plus">{$_lang['unfold']}</span></a>
                                <a href="javascript:show_hide()" id="tool_hide" style="display:none" title="{$_lang['fold']}"><span class="icon16 sq-minus">{$_lang['fold']}</span></a>
                            </div>
                            <!--end 工具栏-->
                       </div>
                       <!--end 条件列表-->
                       
                       
                       <!--已选条件-->
                       <div class="select_condition clearfix pad10 m_h">
                       
                           <div class="grid_2 omega">
                           		<h3 class="title">{$_lang['selected_terms']}</h3>
                           </div> 
                        	<div class="grid_21">
                            		<!--当无选择条件时显示span标记-->
                                    
									{loop $select_arr $k $v}
                                    <a href="$v['url']" class="selected" ><span>$v['name'] <span class="close">&times;</span></a> 
									{/loop}
									{if $select_arr}
								
										<a href="index.php?do=$do" class="button"><span class="icon reload"></span>{$_lang['reset']}　</a>
										<a href="javascript:save_cookie()" class="button"><span class="icon check"></span>{$_lang['save_search_terms']}</a>
										  <div class="success" style="color:#2f55a0;display:none" id="success">
                                       		 {$_lang['save_suc']}
                                    	</div>
									{else}
										<span>{$_lang['no_selected_terms']}</span> 
									{/if}
                            </div>
                       </div>
					   	
							
                       <!--end 已选条件-->
					   </div>
                    </div>
                     <!--end 筛选条件-->
                    </div>
                </div>
            
            
                <section class="clearfix section"> 
                    <div class="second_menu container_24 po_ab m_h">
                        <div class="suffix_23 pull_1">
                            <nav class="minor_nav box">
                                <ul class="nav_group clearfix">                                	
                                    <li>
                                    	<a href="#" title="{$_lang['help_center']}"><span class="icon16 help">{$_lang['help_center']}</span><b class="font14 ml_5 po_re" style="top:3px;">？</b></a>
									</li>
									<li>
											<a href="#" title="{$_lang['back_to_shop_list']}"><div class="icon16 image-text">{$_lang['back_to_shop_list']}</div></a>
									</li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                    
                    <div class="show_panel container_24 po_re">
                        <div class="po_re clearfix box basic_style">
                                  
                                <!--左边内容-->
                                <div class="grid_17">
                                    <div class="box basic_style normal clearfix">
                                        <!--左内容头-->
                                    	<div class="border_b_c clearfix">
                                    	<div class="grid_11">
                                            <div class="sum clearfix">
                                                <p>{$_lang['total_find']}<span class="cc00"> $count </span>{$_lang['tiao_result']}</p>
                                             </div>
                                        </div>
                                         
										  </div>
                                          <!--end 左内容头-->
                                        
											<!--地图内容-->
											
											<div id="div_map">					
											<div id="container" style="height:500px"></div>
											</div>
											{$map_script}              
											<!--end 地图内容-->
                                        
                                        <!--右下角的返回顶部-->
                                        <div class="operate mt_20 t_r">
                                                    <a href="index.php" class="" title="{$_lang['return_home']}"><span class="icon16 home"></span><span class="return_word">{$_lang['return_home']}</span></a>
                                                    <a href="#" class="" title="{$_lang['return_top']}"><span class="icon16 arrow-top"></span><span class="return_word">{$_lang['return_top']}</span></a>
                                        </div>
                                        <!--end右下角的返回顶部-->      
                                    </div>
                                     
                                    
                                    <div class="clear"></div>
                                         
                                </div>
                                <!--end 左边部分-->
                                
                                <!--右边部分-->
                                <div class="grid_7 omega">
                                	
									
									<div class="box basic_style normal ws_break mb_10">
                                        <!--任务列表-->
                                        <div class="inner">
                                            <div class="list">
                                                <dl>
													{loop $service_arr $k $v}  
                                                	<dd>
                                                		<ul class="clearfix">
                                                			<li class="w0 t_l"><a  onmouseover="openMyWin({$k});" href="javascript:void(0);" title="{$v['title']}" class="font14b"><span class="cc00">{c:$v['price']}</span> $v['title']</a></li>
                                                		</ul>
                                                	</dd>
													{/loop}
												
                                                </dl>
												
											</div>
											<div class="clear">
			                                    </div> 
			                                    <div class="clear">
			                                    </div> 
                                            
                                        </div>
                                        <!--end任务列表-->
                                    </div>
									
									
                                         
                                        
									
                                        
                                    </div>
                                
                                <!--end 右边部分-->         
                            
                        </div>
                    </div>
                                    
                </section>    
					<div class="clear"></div>
					  <!--大厅列表_底部通栏广告 start-->
					 		 <!--{ad_show(LIST_BOTTOM_BANNER)}-->
					  <!--大厅列表_底部通栏广告 end-->
					<div class="clear"></div>                
            </div>  
        </section> 
</div>  
        <!--end 主内容--> 

<script type="text/javascript">
 
    //In.config('serial',true);
	In.add('ui_core',{path:"resource/js/others/ui.core.js",type:'js'});
	In.add('ui_slider',{path:"resource/js/others/ui.slider.js",type:'js',rely:['ui_core']});
	In.add('search',{path:"{$style_path}/js/search.js",type:'js'});
	In('pcas','search','ui_slider',function(){task_bar();new PCAS("province","city","area","{$province}","{$city}","{$area}");});
 
 
	/** 检查用户是否登陆 */
		var uid = parseInt('{$uid}')+0; 

	function check_user_login() {
		if (isNaN(uid) || uid == 0) {
			showDialog("{$_lang['if_now_login']}", 'confirm', "{$_lang['login_notice']}", 'user_login()', 0);
			return false;
		} else {
			return true;
		}
	}


/** 用户登陆 */

function user_login() {
	showWindow('user_login', 'index.php?do=login', 'get');
	return false;
}


		//页面加载，判断搜索条件是现实还是隐藏
        $(function(){
            var show_cookie = getcookie('show_cookie');
            
            if (show_cookie == 1) {
                $("#condition_list").show();
                $("#tool_hide").show();
                $("#tool_show").hide();
            }
        });
        
        //搜索条件现实 /隐藏
        function show_hide(){
            $("#condition_list").toggle(0, function(){
                if ($("#tool_show").is(":hidden")) {
                    setcookie('show_cookie', '');
                    $("#tool_show").show();
                    $("#tool_hide").hide();
                }
                else {
                    setcookie('show_cookie', 1,3600);
                    $("#tool_hide").show();
                    $("#tool_show").hide();
                }
            });
        }	
 

//收藏
function taskFavor(type,obj_id) {
	if (check_user_login()) {
		var url="index.php?do=task&task_id="+obj_id+"&op=taskfavor";
		$.getJSON(url,{keep_type:type,obj_id:obj_id},function(json){
			showDialog(json.data,'notice',json.msg);return false;
		})
	}
}
//分享
var share=function(obj,title){
	ajaxmenu(obj,250,'1','2','43');
	return false;
}
//进度条
   function task_bar(){
        var min = Number($min);
        var max = Number($max);
        
        $("#slider-range").slider({
            range: true,
            min: 0,
            max: 5000,
            values: [min, max],
            slide: function(event, ui){
                $("#amount1").val(ui.values['0']);
				$("#amount2").val(ui.values['1']);
            }
        });
        //$("#amount").val('$' + $("#slider-range").slider("values", 0) + ' - $' + $("#slider-range").slider("values", 1));
		$("#amount1").val($("#slider-range").slider("values", 0));
		$("#amount2").val($("#slider-range").slider("values", 1));
    }
    
    
    //赏金搜索 
    function search_task_cash(){
        var url = window.location.href;
        var min = $("#amount1").val();
        var max =  $("#amount2").val();
        $("#min").val(min);
        $("#max").val(max);
        $("#cash_frm").submit();
    }
    
 
  
</script>		
 
<!--{template footer}-->